package com.weblog.model.article;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 修改 主键使用索引id作为文章类的分类外键
 * @author MaoLin Wang
 * @date 2019/10/1016:38
 */
@Entity
@Table(name="tb_article_category")
public class ArticleCategory implements Serializable {

    private static final long serialVersionUID=-5804565656562943999L;

    @Id
    private String aid;
    private String cid1;
    private String cids;
    private int clevel;
    @Column(name = "categoryName")
    private String categoryName;//分类名


    @Override
    public String toString() {
        return "ArticleCategory{" +
                "aid='" + aid + '\'' +
                ", cid1='" + cid1 + '\'' +
                ", cids='" + cids + '\'' +
                ", clevel=" + clevel +
                ", categoryName='" + categoryName + '\'' +
                '}';
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getCid1() {
        return cid1;
    }

    public void setCid1(String cid1) {
        this.cid1 = cid1;
    }

    public String getCids() {
        return cids;
    }

    public void setCids(String cids) {
        this.cids = cids;
    }

    public int getClevel() {
        return clevel;
    }

    public void setClevel(int clevel) {
        this.clevel = clevel;
    }
}
